﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PicSolve
{
    public class PLineInd
    {
        public int[] Indices { get; private set; }
        public PLine Line { get; set; }
        public int LineLength { get { return Line.Length; } }

        public PLineInd(int length, int[] indices)
        {
            Line = new PLine(length);
            Indices = indices;
        }

        public PLineInd(string s, int[] indices)
        {
            Line = new PLine(s);
            Indices = indices;
        }

        public PLineInd(PLine line, int[] indices)
        {
            Indices = indices;
            Line = line;
        }

        public override string ToString()
        {
            return string.Format("{0} | {1}", string.Join(" ", Indices), Line);
        }
    }
}
